const LoginIndex = {
    template: "#loginIndex",
    data() {
        return {
            formItem: {
                userName: "",
                passWord: "",
                checked: true
            }
        }
    },
    methods: {
        submitHandle: function (e) {
            console.log(this.formItem);
            axios({
                method: 'post',
                url: "/user/validateUserInfo",
                data: this.formItem
            }).then(response => {
                const data = response.data;
                if(data.code=="0000"){
                    location.href='/home'
                }
            }).finally(err=>{

            });
        }
    },
}